package com.tl.satoken.domain.entity;

import lombok.Data;
import java.io.Serializable;

@Data
public class RoomInfo implements Serializable {
    private final String roomId;
    private final int currentPlayers;
    private final int maxPlayers;

    public boolean isFull() {
        return this.currentPlayers >= this.maxPlayers;
    }

    public RoomInfo(final String roomId, final int currentPlayers, final int maxPlayers) {
        this.roomId = roomId;
        this.currentPlayers = currentPlayers;
        this.maxPlayers = maxPlayers;
    }
}

